package com.lky.marshallmall.order.feign;

import com.lky.marshallmall.order.vo.MemberAddressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * Created by
 * autor : Marshall lky
 * datetime: 2021/6/8 19:37
 */
@FeignClient("marshall-member")
public interface MemberFeignService {

    @GetMapping("/member/memberreceiveaddress/{memberId}/address")
    List<MemberAddressVo> getAddress(@PathVariable("memberId") Long memberId);

    @GetMapping("/member/memberreceiveaddress/getAddress/{addrId}")
    public String getAddress1(@PathVariable("addrId") Long addrId);

}
